import Vue from 'vue';
// var Icon = resolve => {
// 	require.ensure([], () => {
// 		resolve(require('../pages/icon/index'))
// 	}, "style");
// };
import VueRouter from 'vue-router';
import Index from '../pages/index/index';
import Layout from '../pages/layout/index';
import Icon from '../pages/icon/index';
import Table from '../pages/table/index';
import Form from '../pages/form/index';
import Menu from '../components/menu';
import Color from '../pages/color/index';
import Button from '../pages/button/index';
import Message from '../pages/message/index';
import Start from '../pages/start/index';
Vue.use(VueRouter);

export default new VueRouter({
  routes:[
    {
      path:"/",
      component:Index,
      children:[

      ]
    },
    {
      path:'/component',
      component:Menu,
      children:[
        {
          path:'layout',
          component:Layout
        },
        {
          path:'icon',
          component:Icon
        },
        {
          path:'table',
          component:Table
        },
        {
          path:'form',
          component:Form
        },
				{
					path:"color",
					component:Color
				},
				{
					path:"button",
					component:Button
				},
        {
          path:"message",
          component:Message
        },
        {
          path:"start",
          component:Start
        }
      ]
    }
  ]
})
